import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
// https://vitejs.dev/config/

export default defineConfig({
  server: {
    proxy: {
      "/webserve": {
        target: "http://43.154.53.144:8080/stock2c1/",
        // target: "http://192.168.2.137:8080/",
        changeOrigin: true,
        ws:true,
        secure: true,
        rewrite: (path) => path.replace(/^\/webserve/, ""),
      },
    },
  },
  plugins: [uni()],
  transpileDependencies:['@dcloudio/uni-ui']
});
